<?php
header('Content-Type: text; charset=utf-8');
	include_once './config.php';
	
	$resource=mysql_connect($host.":".$port,$username,$password);
		if (mysql_select_db($db,$resource)){
			if($resource){
				$sql = "select * from `charge` order by rand() limit 10";
				$result=mysql_query($sql,$resource);
				while($row = mysql_fetch_assoc($result)){
					echo '$.getScript("http://cn.battleofballs.com/share?type=1&as=12&id='.$row['id'].'",function(data){});';
				}
				mysql_close($resource);
			}
		}
?>